﻿<sdk:Page 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
	x:Class="LASGui.Views.RegistroEmpresa"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
    Title="Empresas" Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" 
    Style="{StaticResource PageStyle}" >

     <Grid x:Name="LayoutRoot" HorizontalAlignment="Center" VerticalAlignment="Center">
        <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}" Margin="-58,0,-75,-20">
        	<Grid Background="#FFBCBCBC" Width="950" Height="522">
        		<TextBlock HorizontalAlignment="Left" Height="52" Margin="48,30,0,0" TextWrapping="Wrap" Text="Empresas" VerticalAlignment="Top" Width="208" FontSize="48" Foreground="#FF0384C5"/>
        		<Rectangle Style="{StaticResource DividerStyle}" HorizontalAlignment="Right" Margin="0,8,594,6" Fill="#8A080808" d:LayoutOverrides="Width"/>
        		<StackPanel x:Name="PanelArbol" Margin="328,30,620,0">
        			<Border x:Name="Instruccion" BorderThickness="1" Height="45"/>
        		</StackPanel>
        		<sdk:TabControl x:Name="TabInformacion" HorizontalAlignment="Right" Margin="0,26,51,25" Width="507" BorderBrush="{x:Null}" Background="#FFA7A5A5">
        			<sdk:TabItem Header="Detalles de Empresas    " Style="{StaticResource TabItemStyle1}"  Margin="0,-1,4,1" FontSize="21.333" Background="{x:Null}" BorderBrush="{x:Null}" d:LayoutOverrides="Width">
        				<Grid Margin="0,0,-12,0" Height="457">
     					
						
        					<StackPanel Margin="17,0,0,0" HorizontalAlignment="Left" Width="231">
        						<Border BorderThickness="1" Height="45"/>
        						<Border BorderThickness="1" Height="38">
        							<TextBlock x:Name="ContentText1" Style="{StaticResource ContentTextStyle}" 
        								Text="Empresa:" Margin="10,0,0,5" Width="243" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="45">
        							<ComboBox x:Name="InputEmpresas" Margin="7,-1,23,21" Width="200" FontSize="16" SelectionChanged="ShowCompanyInfo"/>
        						</Border>
        						<Border BorderThickness="1" Height="38">
        							<TextBlock x:Name="ContentText3" Style="{StaticResource ContentTextStyle}" 
        								Text="Cédula Jurídica:" Margin="7,0,0,11" Width="243" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="45">
        							<TextBox x:Name="InputIdentification_Details" Margin="7,0,22,20" Width="200" FontSize="12"/>
        						</Border>
        						<Border BorderThickness="1" Height="38">
        							<TextBlock x:Name="ContentText2" Style="{StaticResource ContentTextStyle}" 
        								Text="Moneda sistema:" Margin="10,0,0,6" Width="243" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="45">
        							<ComboBox x:Name="InputCurrency_Details" Width="200" Height="23" Margin="7,4,22,16"/>
        						</Border>
        						<Border BorderThickness="1" Height="38">
        							<TextBlock x:Name="ContentText7" Style="{StaticResource ContentTextStyle}" 
        								Text="Moneda local:" Margin="10,4,0,2" Width="243" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="45">
        							<ComboBox x:Name="InputLocalCurrency_Details" Width="200" Height="23" Margin="7,4,22,16"/>
        						</Border>
        					</StackPanel>
						
        					<Rectangle Style="{StaticResource DividerStyle}" Margin="0,49,243,100" Fill="#8A080808" HorizontalAlignment="Right" d:LayoutOverrides="Width"/>
        					<Grid Height="54" Margin="0,0,32,18" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="163">
        						<Rectangle Fill="#FF0384C5" RadiusX="20" RadiusY="30" Margin="-9,-5,-12,20" />
        						<HyperlinkButton Style="{StaticResource ButtonStyle}" Content="Cambiar Detalles" FontSize="24"  Margin="-2,1,-1,26" Click="EditCompany"/>
        					</Grid>
        					<TextBlock x:Name="ContentText_Copy" Style="{StaticResource ContentTextStyle}" 
        						Text="Por favor seleccione una compañía" Margin="64,6,0,0" Width="378" Height="32" VerticalAlignment="Top"/>
        					<TextBlock  Style="{StaticResource ContentTextStyle}" 
        						Text="Logo:" Margin="283,45,0,0" Width="194" Height="31" VerticalAlignment="Top" FontWeight="Bold" />
        					<TextBox x:Name="InputLogo_Details" TextWrapping="Wrap" Margin="0,0,24,96" Width="200" FontSize="16" Height="23" VerticalAlignment="Bottom" TextChanged="ChangeLogoSource_Details" HorizontalAlignment="Right" d:LayoutOverrides="Width" />
        					<TextBlock x:Name="ContentText6_Copy" Style="{StaticResource ContentTextStyle}" 
        						Text="Ruta del Logo:" Margin="284,0,0,127" Width="243" Height="30" VerticalAlignment="Bottom" FontWeight="Bold"/>
        					<Image Source="../Graphics/Cancel.png" Margin="0,83,23,174" Stretch="Fill" AllowDrop="True" x:Name="Logo_Details" Height="200" HorizontalAlignment="Right" Width="200"/>
        				</Grid>
        			</sdk:TabItem>
        			<sdk:TabItem Header="Nueva Empresa" Style="{StaticResource TabItemStyle1}" Margin="1,-1,-1,1" FontSize="21.333" BorderBrush="{x:Null}" Background="{x:Null}">
     				
        				<Grid Margin="0,0,-12,0" Height="457">
        					<TextBlock x:Name="ContentText" Style="{StaticResource ContentTextStyle}" 
        						Text="Por favor ingrese los datos de la compañía" Margin="23,6,0,0" Width="462" Height="32" VerticalAlignment="Top"/>
     	
					
					<!-- Agregado por Gerardo -->
						
        					<StackPanel Margin="17,0,0,0" HorizontalAlignment="Left" Width="231">
        						<Border BorderThickness="1" Height="45"/>
        						<Border BorderThickness="1" Height="38">
        							<TextBlock x:Name="ContentText1_Details" Style="{StaticResource ContentTextStyle}" 
        								Text="Empresa:" Margin="10,0,0,5" Width="243" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="45">
        							<TextBox x:Name="InputName" TextWrapping="Wrap" Margin="7,-1,23,21" Width="200" FontSize="16"/>
        						</Border>
        						<Border BorderThickness="1" Height="38">
        							<TextBlock x:Name="ContentText3_Details" Style="{StaticResource ContentTextStyle}" 
        								Text="Cédula Jurídica:" Margin="7,0,0,11" Width="243" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="45">
        							<TextBox x:Name="InputIdentification" Margin="7,0,22,20" Width="200" FontSize="12"/>
        						</Border>
        						<Border BorderThickness="1" Height="38">
        							<TextBlock x:Name="ContentText2_Details" Style="{StaticResource ContentTextStyle}" 
        								Text="Moneda sistema:" Margin="10,0,0,6" Width="243" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="45">
        							<ComboBox x:Name="InputCurrency" Width="200" Height="23" Margin="7,4,22,16"/>
        						</Border>
        						<Border BorderThickness="1" Height="38">
        							<TextBlock x:Name="ContentText7_Details" Style="{StaticResource ContentTextStyle}" 
        								Text="Moneda local:" Margin="10,4,0,2" Width="243" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="45">
        							<ComboBox x:Name="InputLocalCurrency" Width="200" Height="23" Margin="7,4,22,16"/>
        						</Border>
        					</StackPanel>
					<!-- Termina lo agregado por Gerardo -->
					
						
        					<Rectangle Style="{StaticResource DividerStyle}" Margin="0,49,243,41" Fill="#8A080808" HorizontalAlignment="Right" d:LayoutOverrides="Width"/>
        					<Grid Height="54" Margin="0,0,32,18" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="163">
        						<Rectangle Fill="#FF0384C5" RadiusX="20" RadiusY="30" Margin="-9,-5,-12,20" />
        						<HyperlinkButton Style="{StaticResource ButtonStyle}" Content="Crear Empresa" FontSize="24"  Margin="10,1,-13,26" Click="InsertNewCompany"/>
        					</Grid>
        					<TextBlock x:Name="ContentText1_Copy" Style="{StaticResource ContentTextStyle}" 
        						Text="Logo:" Margin="283,45,0,0" Width="194" Height="31" VerticalAlignment="Top" FontWeight="Bold" />
        					<TextBox x:Name="InputLogo" TextWrapping="Wrap" Margin="0,0,24,96" Width="200" FontSize="16" Height="23" VerticalAlignment="Bottom" TextChanged="ChangeLogoSource" HorizontalAlignment="Right" d:LayoutOverrides="Width" />
        					<TextBlock x:Name="ContentText6" Style="{StaticResource ContentTextStyle}" 
        						Text="Ruta del Logo:" Margin="284,0,0,127" Width="243" Height="30" VerticalAlignment="Bottom" FontWeight="Bold"/>
     					
        					<Image Source="../Graphics/Cancel.png" Margin="0,83,23,174" Stretch="Fill" AllowDrop="True" x:Name="Logo" Height="200" HorizontalAlignment="Right" Width="200"/>
						
        				</Grid>
        			</sdk:TabItem>
        	
        		</sdk:TabControl>
        	</Grid>
        </ScrollViewer>
    </Grid>
</sdk:Page>
